package com.anlu.alspringannotaion.enabled.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class ConfigurationDemo {

    @Bean
    public TestBean01 getTestBean01(){
        return  new TestBean01();
    }

    public class TestBean01 {

        public TestBean01() {
            System.out.println("哥们我初始化了");
        }

        public void sayHello(){
            System.out.println("hello ,I am TestBean01");
        }
    }
}
